package com.hrm.model.serviceimple;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.hrm.model.dao.LanguageDAO;
import com.hrm.model.dto.insa.LanguageDTO;
import com.hrm.model.service.LanguageService;

public class LanguageServiceImple implements LanguageService {
	private LanguageDAO languageDAO;
	
	public void setLanguageDAO(LanguageDAO languageDAO) {
		this.languageDAO = languageDAO;
	}


	@Override
	public List<LanguageDTO> getAllLanguage(LanguageDTO dto) {
		return languageDAO.getAllLanguage(dto);
	}


	@Override
	public boolean deleteLanguage(LanguageDTO dto) {
		
		return languageDAO.deleteLanguage(dto);
	}


	@Override
	public boolean insertLanguage(LanguageDTO dto) {

		return languageDAO.insertLanguage(dto);
	}


	@Override
	public boolean updateLanguage(LanguageDTO dto) {

		return languageDAO.updateLanguage(dto);
	}
	
}
